package com.relax.mybatis.annotation;

import java.lang.annotation.*;

/**
 * @author relax
 * @date 2022/07/05
 * @desc 标记需要脱敏的json字段，在读/写请求时对数据进行脱敏
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface SensitiveJSONField {

    /**
     * key集合
     * 
     * @return
     */
    SensitiveJSONFieldKey[] keys();

}
